package com.zzl.study.nacos.condition;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Nacos多注册中心是否允许条件装配类
 *
 * @author: zhangzl
 * @date: 2025/7/15 9:46
 * @version: 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@ConditionalOnProperty(value = "spring.cloud.nacos.multi-discovery.multiple.enabled", matchIfMissing = true)
public @interface ConditionalOnNacosMultiDiscoveryEnabled {
}
